/**************************************************************************//**
*
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date            Author       Notes
* 2020-12-12      Wayne        First version
*
******************************************************************************/

#include <rtconfig.h>
#include <rtdevice.h>
#include <drv_gpio.h>

#define LED   NU_GET_PININDEX(NU_PA, 3)
int main(int argc, char **argv)
{
    /* set LED pin mode to output */
    rt_pin_mode(LED, PIN_MODE_OUTPUT);
    while (1)
    {
        rt_pin_write(LED, PIN_HIGH);
        rt_thread_mdelay(500);
        rt_pin_write(LED, PIN_LOW);
        rt_thread_mdelay(500);
    }

    return 0;
}
